// 生产线相关API

import request from '@/plugins/request.js'

export function getAbilities(){
    return request({
        url: '/abilities',
        method: 'GET'
    })
}

export function addAbility(data){
    return request({
        url: '/ability',
        method: 'POST',
        data
    })
}

export function getAbility(id){
    return request({
        url: '/ability/',
        data: {id:id},
        method: "GET"
    })
}

export function editAbility(data){
    return request({
        url: '/ability',
        method: 'PUT',
        data
    })
}

export function delAbility(id){
    return request({
        url: '/ability/'+id,
        method: "DELETE"
    })
}

export function getHierarchyAll(){
    return request({
        url: '/hierarchy-all',
        method: "GET"
    })
}